package com.class03._extends.test.yxy;


/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/7 8:35
 */
public class C {
    //    private C(){
//        System.out.println("C构造方法");
//    }
    private char sex;
    public int age;
    String name;

    void show() {

        System.out.println("C show");
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    private void sleep() {
        System.out.println("C sleep");
    }


    public static void main(String[] args) {
        C c = new C();
        c.sex = '男';
        c.sleep();
        System.out.println(c.sex);
//        E e = new E();
        c.show();
        c.name = "yxy";
        System.out.println(c.name);

    }

    class E {
        int name;


    }
}
